﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CinemaProject;

namespace CinemaProject
{
    public class User
    {
        private int id;
        private string email;
        private string name;
        private bool studieRabat;
        private bool filmRabat;
        private bool seniorRabat;

        public User(int id, string email, string name, bool studieRabat, bool filmRabat, bool seniorRabat)
        {
            this.id = id;
            this.email = email;
            this.name = name;
            this.studieRabat = studieRabat;
            this.filmRabat = filmRabat;
            this.seniorRabat = seniorRabat;
        }

        public User(string email, string name, bool studieRabat, bool filmRabat, bool seniorRabat)
        {
            this.id = 0;
            this.email = email;
            this.name = name;
            this.studieRabat = studieRabat;
            this.filmRabat = filmRabat;
            this.seniorRabat = seniorRabat;
        }

        public    User()
        {
            id = 0;
            email = "";
            name = "";
            studieRabat = false;
            filmRabat = false;
            seniorRabat = false;
        }

        #region Get&Set
        public int _id
        {
            get { return id; }
            set { id = value; }
        }
        public string _email
        {
            get { return email; }
            set { email = value; }
        }
        public string _name
        {
            get { return name; }
            set { name = value; }
        }
        public bool _studieRabat
        {
            get { return studieRabat; }
            set { studieRabat = value; }
        }
        public bool _filmRabat
        {
            get { return filmRabat; }
            set { filmRabat = value; }
        }
        public bool _seniorRabat
        {
            get { return seniorRabat; }
            set { seniorRabat = value; }
        }
        #endregion

    }
}